package org.example01.service.impl;

import lombok.Setter;
import org.example01.dao.ProductDao;
import org.example01.po.Product;
import org.example01.service.ProductService;

import java.util.List;
@Setter
public class ProductServiceImpl implements ProductService {
    private ProductDao productDao;
    @Override
    public void updateProduct(Product product) {
        productDao.updateProduct(product);
    }

    @Override
    public List<Product> findAllProducts() {
        return productDao.findAllProducts();
    }
}
